/*
 * MagicSmokeMachine.h
 *
 *  Created on: Oct 29, 2012
 *      Author: banfield
 */

#ifndef MSM_H_
#define MSM_H_

/*****************************************************
 * Defines
 ****************************************************/
#define TICKS_PER_SEC 8000000

/*****************************************************
 * Function Prototypes
 ****************************************************/
void InitMSM(void);
void RunMSM(void);

/*****************************************************
 * State Definitions
 ****************************************************/
typedef enum {WaitingForCar,
			CoarseAlignment,
			FineAlignment,
			Charging,
			WaitingForDeparture} MSMState_t ;

#endif /* MSM_H_ */
